package cn.tedu.ivoswork.base.response;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

@Getter
@NoArgsConstructor
@AllArgsConstructor
public enum StatusCode {
    SUCCESS(100,"操作成功"),
    LOGIN_SUCCESS(101,"登录成功"),
    OPERATION_SUCCESS(102,"操作成功"),

    OPERATION_FAILED(400,"操作失败"),
    VALIDATE_ERROR(401,"请求参数错误"),
    DATA_UNEXISTS(402,"请求数据不存在"),

    NOT_LOGIN(200,"未登录"),
    USERNAME_ERROR(201,"用户名或密码错误"),
    PASSWORD_ERROR(202,"用户名或密码错误"),
    USERNAME_ALREADY_EXISTS(203,"用户名被占用");



    //声明状态码和对应的描述
    private Integer code;
    private String message;
}
